package com.sdms.core.auth;

import com.sdms.core.rbac.Right;

public class Priviledges {
	
	private static final ThreadLocal<Right> assignedPriviledges = new ThreadLocal<Right>();

	public static Right retrieveCurrentPriviledges() {
		return assignedPriviledges.get();
	}

	public static void clearPriviledges() {
		assignedPriviledges.remove();
	}

	public static void setNewPriviledge(Right value) {
		assignedPriviledges.set(value);
	}

}
